<?php require VIEW_PATH."/header.php";?>
<body>

    <div class="hd-menu-list">
        <ul>
            <li class="active"><a href="#">商品类型属性</a></li>
            <li><a href="{{U('add',array('id'=>$_GET['id']))}}">添加属性</a></li>
        </ul>
    </div>

    <table class="hd-table hd-table-list">
        <thead>
            <tr>
                <td>attr_id</td>
                <td>属性名称</td>
                <td>类型</td>
                <td>操作</td>
            </tr>
        </thead>
        <tbody>
           {{foreach from="$data" value="$v"}}
           <tr>
            <td>{{$v['attr_id']}}</td>
            <td>{{$v['attr_name']}}</td>
            <td>{{$v['_attr_type']}}</td>
            <td class="hd-w100">
                <a href="{{U('edit',array('id'=>$v['attr_id']))}}">修改</a> |
                <a href="#">删除</a>
            </td>
        </tr>
        {{endforeach}}
    </tbody>
</table>

</body>
</html>